﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace dbPoll_Application.Models
{
    public class Entity
    {
        public virtual int entityID { get; set; }
        public virtual String name { get; set; }
        public virtual Entity parent { get; set; }
        public virtual bool isDeleted { get; set; }

        public Entity()
        {
            this.entityID = -1;
            this.name = String.Empty;
            this.parent = null;
            this.isDeleted = false;
        }

        public Entity(String name)
        {
            this.entityID = -1;
            this.name = name;
            this.parent = null;
            this.isDeleted = false;
        }

        public Entity(String name, Entity parent)
        {
            this.entityID = -1;
            this.name = name;
            this.parent = parent;
            this.isDeleted = false;
        }

        public Entity(int fieldID, String name, Entity parent)
        {
            this.entityID = fieldID;
            this.name = name;
            this.parent = parent;
            this.isDeleted = false;
        }
    }
}
